package com.macrounion.atv.service.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.macrounion.atv.service.entity.CurrentData;
import com.macrounion.atv.service.entity.ext.CurrentDataExt;

@Mapper
public interface CurrentDataMapperExt {

	int saveData(@Param("items")List<CurrentData> datas);
	List<CurrentData> getByDeviceId(String deviceId);
	List<CurrentData> getByDeviceCode(String deviceCode);
    List<CurrentDataExt> requestPageExt(CurrentDataExt request);
	CurrentData getCurrentData(@Param("deviceCode")String deviceCode, @Param("channelCode")String channelCode);
	List<CurrentData> getSnmpTraps();
	int getTrapNum();
}